﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="LogonBox.ascx.cs" Inherits="webapp4U.UI.Controls.Controls_MenuLeft" %>
<%@ Import Namespace="webapp4U" %>
<%@ Register TagPrefix="webapp4U" Namespace="webapp4U.UI" %>


<div class="direct_wrapper">
      <!-- Start header -->
      <div class="direct_header">
      </div>
      <!-- End header -->
      <!-- Start Container main login -->
       <div class="direct_content_login_group">
            <div class="direct_content_login">
                <div class="direct_col_content_top" >
                    <div class="direct_col_content_top_1"></div>
                    <div class="direct_col_content_top_2"></div>
                    <div class="direct_col_content_top_3"></div>
                </div>
                <div class="direct_col_content_middle">
                    <div class="direct_title_group_menu">
                        <div class="direct_title_group_menu_1"></div>
                        <div class="direct_title_group_menu_2">
                            <div class="direct_title_menu">
                                <strong><%=ResourceManager.GetString("Logog_DangNhap")%></strong>
                            </div>
                        </div>
                        <div class="direct_title_group_menu_3"></div>
                    </div>
                    <div class="direct_content_main">
                        <div class="direct_content_main_left">
                            <img alt="" src="<%=Globals.ApplicationPath%>images/img_login_lock.png"/>
                        </div>
                        <div class="direct_content_main_right">
                            <div>
                            
                                <asp:Panel ID="PanelLogon" runat="server" DefaultButton="btLogon">
                                            <asp:UpdatePanel ID="UpdatePanelLogonBox" runat="server" UpdateMode="Conditional">
                                                <contenttemplate>
                                                <table align="center" cellpadding="3" cellspacing="0" border="0">
                                                    <tr>
                                                        <td colspan="2" align="center">
                                                            <asp:Label runat="server" ID="lblMsg" ForeColor="red"></asp:Label>
                                                        </td>
                                                    </tr>
                                                    <tr id="Tr4" visible="true" runat="server">
                                                        <td align="left">
                                                            <%=ResourceManager.GetString("Register_UserName")%>:</td>
                                                        <td>
                                                            <asp:TextBox ValidationGroup="Logon" ID="txtEmail" MaxLength="200" runat="server" Width="80" />
                                                        </td>
                                                    </tr>
                                                    <tr id="Tr1" runat="server">
                                                        <td align="left" >
                                                            <%=ResourceManager.GetString("Register_Password")%>:</td>
                                                        <td>
                                                            <asp:TextBox ValidationGroup="Logon" ID="txtPassword" TextMode="Password" MaxLength="200" runat="server" Width="80" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="right" colspan="2" style="padding-bottom:3px;">
                                                        <a href="<%=Globals.ApplicationPath %>Membership/PasswordRecovery.aspx"><u><%=ResourceManager.GetString("Membership_ForgotPassword")%></u></a>
                                                            <asp:Button ValidationGroup="Logon" Visible="false" runat="server" ID="btDangky" Text="Đăng ký" OnClick="btDangky_Click" />
                                                            <asp:Button ValidationGroup="Logon" Visible="true" runat="server" ID="btLogon" Text="Đăng nhập" OnClick="btLogon_Click" />
                                                                                                                        
                                                        </td>
                                                    </tr>
                                                   <%-- <tr>
                                                        <td colspan="2" align="right" style="padding-bottom:3px;">
                                                            <a href="<%=Globals.ApplicationPath %>Membership/PasswordRecovery.aspx"><u><%=ResourceManager.GetString("Membership_ForgotPassword")%></u></a>
                                                        </td>
                                                    </tr>--%>
                                                </table>
                                            </contenttemplate>
                                           </asp:UpdatePanel>
                                    </asp:Panel>
                                    
                                    <asp:Panel runat="server" ID="PanelHello">
                                         <table align="center" cellpadding="6" cellspacing="0" border="0">
                                            <tr>
                                                <td align="center">
                                                     <%=ResourceManager.GetString("Logon_Hello")%>:
                                                    <asp:LoginName ID="LoginName1" runat="server" Font-Bold="true" />
                                                    <br /><br />
                                                    <asp:LoginStatus runat="server" ForeColor="red" Font-Underline="true" ID="LoginStattus" />
                                                </td>
                                            </tr>
                                            
                                             <tr>
                                                <td align="center" style="padding-top:12px;">
                                                    <a href="<%=Globals.ApplicationPath %>Membership/CreateUser.aspx?Action=Edit"><u><%=ResourceManager.GetString("Membership_ChangeInformation")%></u></a>
                                                </td>
                                            </tr>
                                            
                                             <tr>
                                                <td align="center">
                                                    <a href="<%=Globals.ApplicationPath %>Membership/ChangePassword.aspx"><u><%=ResourceManager.GetString("ChangePassword")%></u></a>
                                                </td>
                                            </tr>
                                          </table>
                                    </asp:Panel>
                            </div>
                        </div>
                        <div class="clear"></div>
                    </div>
                </div>
                <div class="direct_col_content_bottom">
                <div class="direct_col_content_bottom_1"></div>
                <div class="direct_col_content_bottom_2"></div>
                <div class="direct_col_content_bottom_3"></div>
                </div>
            </div>
       </div>

      <!-- End Container main login -->
</div>
    
